package com.code.day01;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class Demo {

    public static void main(String[] args) {


        List<String> list = Arrays.asList("1", "2", "3", "4", "5");

        // 筛选下大于1的元素

        List<String> collect = list.stream().filter(x -> Integer.parseInt(x) > 1).collect(Collectors.toList());
        System.out.println(collect);

    }
}
